import express from "express";
import { formatResponse } from "../../utils/tools";
import { PayService } from "../../services/pay/PayService";
const router = express.Router();

router.get("/", async (req: any, res) => {
  const result = await PayService.pay(req.headers.referer);
  res.send(formatResponse<any>(result));
});

export default router;
